You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > MatrixInt Structure > MatrixInt Operators > MatrixInt Constructor > MatrixInt.MatrixInt Constructor ([In] int, [In] int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
MatrixInt.MatrixInt Constructor ([In] int, [In] int)

Constructor of the record.

Syntax
C#
Visual Basic
public MatrixInt([In] int aRows, [In] int aCols);

Returns a Vector with internal TMtxInt object created explicitely with Length property set to aLength and IntPrecision property set to int32. Call this constructor, if the Vector type variable is a global variable with a long life span.

var a,b: MatrixInt; bvec: TMtxInt; begin a := MatrixInt.Create(true); //create from object cache via CreateIt //this constructor can be omitted, because it is implicitly called //the first time that the variable is used. //However: b := MatrixInt.Create(10); //Similar to bvec := TMtxInt.Create; try bvec.Size(10); finally bvec.Free; //b is freed on the exit from the procedure end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!